package com.jbit.springboot04.mapper;

import com.jbit.springboot04.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserMapper {
    @Select("select count(1) from t_sys_user")
    int count();
    
    @Transactional
    List<User> getAll();
}
